﻿namespace FFF.Test.DataAccess.Framework.Configuration
{
    using System;
    using System.Collections.Generic;
    using System.Text;
    using Microsoft.EntityFrameworkCore;
    using FFF.Test.Entity.Demo;

    /// <summary>
    /// 数据初始化帮助类
    /// </summary>
    public static class DataSeedConfiguration
    {
        /// <summary>
        /// 初始化数据
        /// </summary>
        /// <param name="modelBuilder">builder</param>
        public static void Seed(ModelBuilder modelBuilder)
        {
            modelBuilder.Entity<DemoStudentEntity>().HasData(
                new DemoStudentEntity { Id = System.Guid.NewGuid(), StudentName = "test001" }
            );
        }
    }
}
